package yanjunwei.rbac.dao;

import yanjunwei.rbac.domain.entity.BaseEntity;


import java.util.Collection;


public interface IBaseDao<Entity extends BaseEntity> {
    boolean existsById(int id);

    Entity findById(int id);

    Collection<Entity> list();

    Entity save(Entity entity);
 Entity delete(int id);
}
